package org.votes.template;

import java.util.Map;

public class VelocityTemplateEngine extends AbstractTemplateEngine {
	
	private static final String DEFAULT_TEMPLATE = "VelocityExample.vm";

	public String getTemplatePath() {
		return this.realPath;
	}

	public void run(Map map, String realPath, String generatorPath) throws Exception {
		this.realPath = realPath;
		this.generatorPath = generatorPath;
		super.run(map);
	}

	public String getTemplate() {
		return DEFAULT_TEMPLATE;
	}

	public String getEngineType() {
		return Constants.ENGINE_TYPE_VELOCITY;
	}

}
